﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace UMLDraw
{
    public partial class Help : Form
    {
        public Help()
        {
            InitializeComponent();
        }

        private void treeView1_AfterSelect(object sender, TreeViewEventArgs e)
        {
            Note.Text = treeView1.SelectedNode.Text;
            int num = treeView1.SelectedNode.Index;
            switch (num)
            {
                case 0:
                    newProject.Show();
                    openProject.Hide();
                    saveProject.Hide();
                    add.Hide();
                    edit.Hide();
                    drag.Hide();
                    delete.Hide();
                    size.Hide();
                    break;
                case 1:
                    newProject.Hide();
                    openProject.Hide();
                    saveProject.Show();
                    add.Hide();
                    edit.Hide();
                    drag.Hide();
                    delete.Hide();
                    size.Hide();
                    break;
                case 2:
                    newProject.Hide();
                    openProject.Show();
                    saveProject.Hide();
                    add.Hide();
                    edit.Hide();
                    drag.Hide();
                    delete.Hide();
                    size.Hide();
                    break;
                case 3:
                    newProject.Hide();
                    openProject.Hide();
                    saveProject.Hide();
                    add.Show();
                    edit.Hide();
                    drag.Hide();
                    delete.Hide();
                    size.Hide();
                    break;
                case 4:
                    newProject.Hide();
                    openProject.Hide();
                    saveProject.Hide();
                    add.Hide();
                    edit.Show();
                    drag.Hide();
                    delete.Hide();
                    size.Hide();
                    break;
                case 5:
                    newProject.Hide();
                    openProject.Hide();
                    saveProject.Hide();
                    add.Hide();
                    edit.Hide();
                    drag.Show();
                    delete.Hide();
                    break;
                case 6:
                    newProject.Hide();
                    openProject.Hide();
                    saveProject.Hide();
                    add.Hide();
                    edit.Hide();
                    drag.Hide();
                    delete.Show();
                    size.Hide();
                    break;
                case 7:
                    newProject.Hide();
                    openProject.Hide();
                    saveProject.Hide();
                    add.Hide();
                    edit.Hide();
                    drag.Hide();
                    delete.Hide();
                    size.Show();
                    break;
            }
        }
    }
}
